package com.iqik.sc.ns.service;


import com.iqik.sc.ns.service.fallback.UserServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service-user", fallback = UserServiceFallback.class, path = "/user")
public interface UserService {

    @RequestMapping("/isRegistered/{email}")
    String isRegister(@PathVariable(value = "email") String email);

}
